package com.java.mapper;

import java.util.List;

import com.java.pojo.OneMenu;
import com.java.pojo.SysAuthorityBean;
import org.apache.ibatis.annotations.Param;

public interface SysAuthorityBeanMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysAuthorityBean record);

    int insertSelective(SysAuthorityBean record);

    SysAuthorityBean selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysAuthorityBean record);

    int updateByPrimaryKey(SysAuthorityBean record);
    
    List<SysAuthorityBean> selectByParentId(Long parent);

    /**
     * 查询权限信息
     * @return
     */
    List<OneMenu> selectSQAuthority();

    /**
     * 添加权限信息
     */
    int insertSystemAuthortys(@Param("userId") Long userId,@Param("list") List list);
}